package com.lhkj.ct.meta.modules.questionnaire.model.vo;

import com.lhkj.ct.meta.modules.gauge.common.enums.QuestionType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *     作答结果临时类
 * </p>
 */
@Data
public class QnrResultVo implements Serializable {


    @ApiModelProperty("作答结果id")
    private String rId;

    @ApiModelProperty("问卷id")
    private String qnrId;

    @ApiModelProperty("问卷名称")
    private String qnrName;

    @ApiModelProperty("简介")
    private String introduction;

    @ApiModelProperty("题目")
    private List<Question> questions;

    @Data
    public static class Question {

        @ApiModelProperty("题目序号")
        private String qutNum;

        @ApiModelProperty("题目id")
        private String qutId;

        @ApiModelProperty("题目内容")
        private String qutContent;

        @ApiModelProperty(value = "题目类型")
        private QuestionType type;

        @ApiModelProperty("填空答案")
        private String answer;

        @ApiModelProperty("选项")
        private List<Option> options;

        @Data
        public static class Option {

            @ApiModelProperty("选项编号")
            private String optSymbol;

            @ApiModelProperty("选项内容")
            private String optContent;

            @ApiModelProperty("是否选中")
            private boolean checked;
        }
    }
}
